<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<div id="result">
<div class="div_header1">Notes</div>
<br style="clear: both;" />
<form accept-charset="utf-8" action="<?php echo Configure::read('base_url');?>products/addnote_reporteditem" method="post" id="productmessage">
<table cellspacing="0" id="mytable" width="100%">
             <tbody>
                
                <tr>
                    <td >
                    <?php
                
                echo $this->Form->hidden('Reportnote.product_id',array('value'=>$pid));
				echo $this->Form->input('Reportnote.note',array('cols'=>60,'class'=>'required'));
                
                ?>
                    </td>
                  </tr>
                 <tr>
                    <td >
                    <input type="submit" style="background:#73AE0B; color:#fff; font-size:14px;" name="button" id="button" value="add/update note" />
                    </td>
                  </tr>
                    </tbody>
                </table>
</form>
</div>
</body>
</html>
<?php  echo $html->script(array("jquery.min.js","jquery.form.js","jquery.validate.js", "jquery.tablesorter.min.js", "jquery.tablednd.js")); ?>
<script type="text/javascript">
    
 jQuery(document).ready(function(){

 	var v = jQuery("#productmessage").validate({
                    rules: {
                    },
      submitHandler: function(form) {
				jQuery(form).ajaxSubmit({
					target: "#result"
				});
			}
		});
      
     /* var idVal=""; var  isID="0";
      jQuery(".products_id",window.parent.document ).each(function()
        {

         
         if(this.checked==true){
             if(isID=="0"){
             idVal+=jQuery(this).val();
             isID="1";
            }
            else
                idVal+=","+jQuery(this).val();


         }
        });
        
        if(idVal!=""){
            
            jQuery('#productids').val(idVal);
        }
*/
                 });


 </script>